namespace TimeMachine.Engine.Metrics.Impl
{
	[MetricDescriptor("CommitRate", AnalyseStranges = false, ShowPersonalMetrics = true)]
	public class CommitRateMetric : BaseMetric
	{
		public override MetricValue Calculate(int rev)
		{
			return new MetricValue(rev, Desc.MetricId, 1);
		}

		public override IAggregator CreateAggregator()
		{
			return new SumPerDay();
		}
	}
}